package com.taxi.driver.module.vo;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import com.taxi.driver.data.entity.BillItemEntity;

public class BillItemVO {
    public static BillItemVO createFrom(BillItemEntity entity) {
        if (entity == null) return new BillItemVO();
        String strJson = JSON.toJSONString(entity);
        return JSON.parseObject(strJson, BillItemVO.class);
    }

    @JSONField(name = "type")
    public int type;//收入/支持项目名称

    @JSONField(name = "createTime")
    public long time;//时间

    @JSONField(name = "money")
    public double money;//费用

    public String remark; //项目名称

    public String signedMoney; //带符号费用

}
